package cn.net.yugu.doraemon.redis.lock;

import java.util.concurrent.TimeUnit;

/**
 * @description:
 * @author: wanghongli
 * @create: 2022-07-18 00:42:54
 */
public interface RLock {
    boolean tryLock();

    boolean tryLock(long timeout, TimeUnit unit) throws InterruptedException;

    void unlock();

    boolean holdByCurrentThread();
}
